docs: package templates design v2 (multi-level resolution)#111
Merged
Conversation
Incorporates the generality + convenience requirements:
- 4-level SPEC grammar (NAME | pkg:tmpl | pkg@ver | pkg@ver:tmpl); bare-name
resolves builtin registry first (frozen to bin|lib), then the package's
DEFAULT template (template.toml default = true, exactly 0/1).
- gui builtin becomes a transitional deprecation alias (the imgui hardcode in
cmd_new is the anti-example: version already rotted 0.0.2 vs 0.0.5).
- [template.inject] self = { features = [...] } ties templates to the
features mechanism (docking template injects docking-full) with
{{self.version}} eliminating version drift structurally.
- pure-data trust boundary (render+copy, no hooks/scripts); placeholder
vocabulary deliberately minimal; T1-T8 implementation plan + acceptance.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Design-only. Multi-level
--templategrammar (bare name → builtin frozen registry → package default template; pkg:tmpl / pkg@ver / pkg@ver:tmpl), default-template declaration, [template.inject] features tie-in with {{self.version}} (structural fix for the builtin-gui version rot, 0.0.2 vs ecosystem 0.0.5), pure-data trust boundary, T1–T8 plan. Implementation comes as a follow-up.